{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "user_data = \"hy\"\n",
    "user_password = \"230008\"\n",
    "user_name = input(\"用户名称：\")\n",
    "password = input(\"密码：\")\n",
    "\n",
    "if user_name == user_data:\n",
    "    if password == user_password:\n",
    "        print(\"欢迎登陆\")\n",
    "    else:\n",
    "        print(\"密码错误，请重新输入\")\n",
    "        user_name = input(\"请输入正确的账号：\")\n",
    "        password = input(\"请输入正确的密码：\")\n",
    "        if user_data == user_name:\n",
    "            if user_password == password:\n",
    "                print(\"欢迎登陆\", user_name)\n",
    "        count = 11\n",
    "        while True:\n",
    "            count -= 1\n",
    "            if count == 0:\n",
    "                print(\"尊贵的会员，您一天能输入10次哦～\")\n",
    "            else:\n",
    "                print(\"尊贵的会员，您今天还有\", count, \"次输入的机会~\")\n",
    "                week_time = int(input(\"今天星期几（请输入0-6的数字）：\"))\n",
    "\n",
    "\n",
    "print(\"课程表\")\n",
    "import datetime\n",
    "\n",
    "time = datetime.datetime.today().weekday()\n",
    "week_time = int(time)\n",
    "print(week_time)\n",
    "if week_time == 1:\n",
    "    print(\"星期一\");\n",
    "    print(\"3-5python语言\");\n",
    "    print(\"6-7写作训练\")；\n",
    "    print（\"10-11大学英语\"）\n",
    "elif week_time == 2:\n",
    "    print(\"星期二\");\n",
    "    print(\"8-10创业基础\");\n",
    "    print(\"12-13毛概实践\")\n",
    "elif week_time == 3:\n",
    "    print(\"星期三\");\n",
    "    print(\"4-5大学英语\");\n",
    "    print(\"12-14毛概\")\n",
    "elif week_time == 4:\n",
    "    print(\"星期四\");\n",
    "    print(\"4-5羽毛球\")\n",
    "\n",
    "elif week_time == 5:\n",
    "    print(\"星期五\");\n",
    "    print（\"1-2ai\"）\n",
    "    print(\"3-5网站运营与管理\");\n",
    "    print(\"12-15数字多媒体技术\")\n",
    "elif week_time == 0:\n",
    "    print(\"星期六、星期日\");\n",
    "    print(\"娱乐\")\n"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}